<?php
namespace App\Common;

/**
 * 返回码定义
 */
class ResponseCode
{
    Const SUCCESS = 1;
    Const FAILURE = 0;

    //系统级别错误
    Const SYSTEM_ERROR     = 1000;
    Const INVALID_URI      = 1001; //无效的请求地址
    Const PLEASE_LOGIN     = 1002; //请登录
    Const DEVICE_RELOGIN   = 1003; //其他设备登录
    Const PASSWORD_RELOGIN = 1004; //密码修改重新登录
    Const PARAM_ERROR      = 1005; //参数错误
    Const HEADER_LACK      = 1006; //header参数缺失
    Const HEADER_ERROR     = 1007; //header错误
    Const SIGN_LACK        = 1008; //签名参数缺失
    Const SIGN_ERROR       = 1009; //签名错误
    Const SERVER_ERROR     = 1010; //服务器内部错误

    //业务级别错误
    Const COMMON_ERROR     = 2000; //通用错误返回
    Const ACTIVE_FAIL      = 2001; //操作失败
    Const NOT_REGISTER     = 2002; //未注册


}
